// 取消支付弹出框

<template>
  <div class="no-pay-popup-wrap">
    <div class="msg">确定放弃支付吗?</div>
    <div class="btn">
      <div class="no" @click="cancelPay">去意已决</div>
      <div class="yes">我在想想</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "NoPayPopup",
  methods: {
    // 点击去意已决，这个时候要改变vuex中的finish状态，表示为待支付
    cancelPay () {
      this.$store.commit("order/changeProgressFinish",false)
      this.$router.push('/order')
    }
  },
};
</script>

<style lang="scss" scoped>
.no-pay-popup-wrap {
  width: 250px;
  height: 170px;
  background: white;
  border-radius: 10px;
  .msg {
    width: 100%;
    height: 116px;
    line-height: 116px;
    color: #999999;
    font-size: 16px;
    text-align: center;
  }
  .btn {
    display: flex;
    justify-content: space-around;
    align-items: center;
    div {
      width: 100px;
      height: 40px;
      line-height: 40px;
      text-align: center;
      color: rgb(241, 237, 237);
      border-radius: 5px;
    }
    .no {
      background-color: rgb(194, 192, 192);
    }
    .yes {
      background-color: #ff3f34;
    }
  }
}
</style>